﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace Chat
{
    public abstract class InCmdOutCmd<InCmd,OutCmd>
        where InCmd : Command where OutCmd : Command
    {
        public InCmdOutCmd()
        {
            Debug.Assert(
                typeof(InCmd) == typeof(Client.ClientCmd) &&
                typeof(OutCmd) == typeof(Server.ServerCmd) ||
                typeof(InCmd) == typeof(Server.ServerCmd) &&
                typeof(OutCmd) == typeof(Client.ClientCmd));
        }
    }
}
